﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Volo.Abp.Domain.Entities;

namespace Himp.Platform
{
    /// <summary>
    /// 编码字典
    /// </summary>
    public class CodgDict : Entity<Guid>, IMultiTenant, ISoftDelete
    {
        /// <summary>
        /// 分类编码
        /// </summary>
        public string CatgeCodg { get; set; }

        /// <summary>
        /// 编码字典名称
        /// </summary>
        public string CodgDictName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public List<CodgRule> CodgDictRules { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public List<CodgHistory> CodgHistorys { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool ValiFlag { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public CodgDict()
        {
            
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="codg"></param>
        /// <param name="name"></param>
        public CodgDict(string catgeCodg, string codgDictName, bool valiFlag)
        {
            CatgeCodg = catgeCodg;
            CodgDictName = codgDictName;
            ValiFlag = valiFlag;
            CodgDictRules = new List<CodgRule>();

        }
    }
}
